<?php
namespace app\models;
use yii;
use yii\base\model;
class EntryForm extends Model{
  public $name;
  public $email;
  public function rules(){
    return [
      [['name','email'],'required'],
    ['email','email'],
  ];
  }
}
